package com.eascs.web.o2o.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eascs.web.o2o.web.dao.WebBaseDao;

import com.eascs.web.o2o.web.dao.BiodsDao;
import com.eascs.web.o2o.web.entity.O2oPlatformRegional;
import com.eascs.web.o2o.web.service.ProvinceNameData;

@Service
public class ProvinceNameDataImpl implements ProvinceNameData {

	@Autowired
	WebBaseDao webBaseDao;
	
	@Autowired
	BiodsDao biodsDao;
	
	@Override
	public List<O2oPlatformRegional> getProvinceNameData() {
		String sql = "SELECT * FROM ods_o2oservice_platform_regional p GROUP BY p.province_name";
		return biodsDao.findEntitys(sql, O2oPlatformRegional.class);
	}

}
